home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / Universal Headers 2.0.1f / Folders.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-22  |  2.6 KB  |  89 lines  |  [TEXT/MMCC]

  1. /*
  2.      File:        Folders.h
  3.  
  4.      Contains:    Folder Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __FOLDERS__
  21. #define __FOLDERS__
  22.  
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifndef __FILES__
  30. #include <Files.h>
  31. #endif
  32. /*    #include <MixedMode.h>                                        */
  33. /*    #include <OSUtils.h>                                        */
  34. /*        #include <Memory.h>                                        */
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. #if PRAGMA_ALIGN_SUPPORTED
  41. #pragma options align=mac68k
  42. #endif
  43.  
  44. #if PRAGMA_IMPORT_SUPPORTED
  45. #pragma import on
  46. #endif
  47.  
  48.  
  49. enum {
  50.     kOnSystemDisk                = 0x8000,
  51.     kCreateFolder                = true,
  52.     kDontCreateFolder            = false,
  53.     kSystemFolderType            = 'macs',                        /* the system folder */
  54.     kDesktopFolderType            = 'desk',                        /* the desktop folder; objects in this folder show on the desk top. */
  55.     kTrashFolderType            = 'trsh',                        /* the trash folder; objects in this folder show up in the trash */
  56.     kWhereToEmptyTrashFolderType = 'empt',                        /* the "empty trash" folder; Finder starts empty from here down */
  57.     kPrintMonitorDocsFolderType    = 'prnt',                        /* Print Monitor documents */
  58.     kStartupFolderType            = 'strt',                        /* Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here */
  59.     kAppleMenuFolderType        = 'amnu',                        /* Finder objects to put into the Apple menu go here */
  60.     kControlPanelFolderType        = 'ctrl',                        /* Control Panels go here (may contain INITs) */
  61.     kExtensionFolderType        = 'extn',                        /* Finder extensions go here */
  62.     kFontsFolderType            = 'font',                        /* Fonts go here */
  63.     kPreferencesFolderType        = 'pref',                        /* preferences for applications go here */
  64.     kTemporaryFolderType        = 'temp'
  65. };
  66.  
  67. #if SystemSevenOrLater
  68. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID)
  69.  TWOWORDINLINE(0x7000, 0xA823);
  70. #else
  71. extern pascal OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID);
  72. #endif
  73. extern pascal OSErr ReleaseFolder(short vRefNum, OSType folderType)
  74.  TWOWORDINLINE(0x700B, 0xA823);
  75.  
  76. #if PRAGMA_IMPORT_SUPPORTED
  77. #pragma import off
  78. #endif
  79.  
  80. #if PRAGMA_ALIGN_SUPPORTED
  81. #pragma options align=reset
  82. #endif
  83.  
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87.  
  88. #endif /* __FOLDERS__ */
  89.